home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: Greatest Hits 1996 / Amiga Games: Greatest Hits 1996.iso / archive / userbox / publicdomain / yagin.lha / YAGIN / Examples / SetUp_INet < prev    next >
Text File  |  1996-07-06  |  2KB  |  77 lines

  1. ;SetUp for INet
  2.  
  3. ; $VER: SetUp_INet 1.0 (5.7.95) Arndt van der Molen
  4.  
  5. assign INet:            InterNet:INet
  6.  
  7. ; No need to setup. Use setup from UUCP!
  8. ;SetEnv LIBDIR            see UUCP
  9.  
  10. ; No need to setup. Use setup from UUCP!
  11. ;SetEnv NEWSDIR            see UUCP
  12.  
  13.  
  14. SetEnv LOGFILE            INet:Logfile
  15. SetEnv USERNAME            `AmiTCP:bin/whoami`
  16. SetEnv REALNAME         Max Mustermann
  17. SetEnv NODENAME            dom
  18. SetEnv DOMAINNAME        .ain.de
  19.  
  20. ; Hostname is setup by AmiTCP:bin/startnet or AmiTCP:bin/startlocal script
  21. ;SetEnv HOSTNAME        dom.ain.de
  22.  
  23. SetEnv ORGANIZATION        My private Account
  24. SetEnv NNTPSERVER        news.dom.ain.de
  25.  
  26. ;SetEnv NNTPUSERID
  27. ;SetEnv NNTPPASSWORD
  28.  
  29. SetEnv SMTPSPOOLDIR        INet:Mail_OUT/
  30. SetEnv SMTPMAILDIR        INet:Mail_IN/
  31. SetEnv SMTPSMARTERHOST    smtp.dom.ain.de
  32. SetEnv SMTPRMAIL        INet:c/SMTPpost -r
  33.  
  34. ; The name of SMTPpost for SMTPd to use.
  35. SetEnv SMTPPOST            INet:c/SMTPpost
  36.  
  37. ; A (optional) command to be executed when SMTPd files _mail_ locally to inform user.
  38. ;SetEnv MAILREADYCMD
  39.  
  40. SetEnv HOSTALIASES        localhost
  41.  
  42. ;SMTPRoute defines the mechanisms used to find a hostname, and how to deliver it.
  43. SetEnv SMTPROUTE        MX,SMTP,SmarterHost
  44.  
  45. ; Advise SMTPPost to queue outgoing _mail_. No other possibility to send mail in local mode!
  46. ; Add same line with 'no' in AmiTCP:db/User-Startnet for online mode after calling this script
  47. SetEnv SMTPAlwaysQueue    yes
  48.  
  49. ; NNTPxfer supports an environment variable named NNTPRNEWS. When
  50. ; defined, NNTPxfer will call that program, with each incoming _news_
  51. ; article on standard input, and allow it to file that article. This
  52. ; allows the input to be filed along with UUCP news, and vice versus.
  53. SetEnv NNTPRNEWS        UUCP:c/rnews
  54.  
  55. ; The CheckUser variable defines a program which is executed for
  56. ; incoming mail to validate whether the destination user actually
  57. ; exists.
  58. ;SetEnv CHECKUSER
  59.  
  60. ; Start SMTP Deamon to deliver outgoing _mails_
  61. run <>NIL: INet:serv/SMTPd <>NIL:
  62.  
  63.  
  64. ;BEGIN SOCKET.LIBRARY
  65. ;
  66. ; Setup the environment variable 'socketconfig' to configure the socket.library
  67. ; Example: UID=200 GID=100 USER=newbie DOMAIN=dom.ain.de UMASK=022
  68. ;
  69. set uid  "`AmiTCP:bin/id -u $user`"
  70. set gid  "`AmiTCP:bin/id -g $user`"
  71. set mask "`AMiTCP:bin/umask`"
  72. setenv socketconfig "UID=$uid GID=$gid USER=$user DOMAIN=$nodename$domainname UMASK=$mask"
  73. unset uid
  74. unset gid
  75. unset mask
  76. ;END SOCKET.LIBRARY
  77.